<template>
  <div>
    <el-table
      v-loading="$store.state.loading"
      :data="$store.state.admin.adminLIst"
      style="width: 100%"
    >
      <el-table-column label="管理员Id" width="200">
        <template slot-scope="scope">{{scope.row._id}}</template>
      </el-table-column>
      <el-table-column label="管理员昵称" width="100">
        <template slot-scope="scope">{{scope.row.adminName}}</template>
      </el-table-column>
      <el-table-column label="管理员加密密码" width="300">
        <template slot-scope="scope">{{scope.row.passWord}}</template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  name: "adminlist",
  mounted() {
    this.$store.dispatch("getAdminList");
  }
};
</script>